﻿<!DOCTYPE html>
<html>
<head>
    @{ var currentModel = (Zatify.WebUI.Models.ModuleViewModel)ViewData["Current_Module"]; }
    <title>Zatify CMS: @ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Admin/Content/zatify/Css/apps_style.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/dynatree-1.2.2/src/skin/ui.dynatree.css")" rel="stylesheet" type="text/css" />
    @RenderSection("Styles", false)
    <script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>
    @*<script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>*@
    @*<script src="@Url.Content("~/Scripts/jquery-ui-1.9.2.min.js")" type="text/javascript"></script>*@
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    @RenderSection("Scripts", false)
</head>
<body>
    <div class="apps_wrapper">
        <!--start header part-->
        <div class="apps_header">
            <div class="header_left">
                <div class="company_logo">
                    <a href="#">
                        <img width="160" src="@Url.Content("~/areas/admin/content/zatify/images/zatify_logo.png")" alt="Zatity" title="Zatity" /></a></div>
            </div>
            <div class="header_right">
                <div class="header_right_content">
                    <div class="header_top_content">
                        <div class="user_info">
                            <h5>
                                Welcome, @((User as Zatify.WebUI.Infrastructure.Concrete.ZatifyPrincipal).Login)!</h5>
                            <a href="#" target="_self">Change Password</a></div>
                    </div>
                    <div class="clearfix">
                    </div>
                    <!--start menu-->
                    <div class="topmenu">
                        <ul>
                            <li>
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.Users)
                                {
                                    <a class="active" href="@Url.Action("List", "Users")">User</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("List", "Users")">User</a>
                                }
                            </li>
                            <li>
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.Business)
                                {
                                    <a href="@Url.Action("List", "Business")" class="active">Business</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("List", "Business")">Business</a>
                                }
                            </li>
                            <li>@*<a href="#">Categories</a>*@
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.Categories)
                                {
                                    <a class="active" href="@Url.Action("List", "Categories")">Categories</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("List", "Categories")">Categories</a>
                                }
                            </li>
                            <li>
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.Rates)
                                {
                                    <a class="active" href="@Url.Action("List", "Rates")">Rates</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("List", "Rates")">Rates</a>
                                }
                            </li>
                            <li>
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.Defaults)
                                {
                                    <a class="active" href="@Url.Action("List", "Defaults")">Defaults</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("List", "Defaults")">Defaults</a>
                                }
                            </li>
                            <li><a href="@Url.Action("Users", "Reports")" class="@((currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.Reports) ? "active" : "")">
                                Reports</a></li>
                            <li>
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.SystemUsers)
                                {
                                    <a class="active" href="@Url.Action("List", "SystemUsers")">System Users</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("List", "SystemUsers")">System Users</a>
                                }
                            </li>
                            <li>
                                @if (currentModel.Module == Zatify.WebUI.Infrastructure.AdminModules.MessageCenter)
                                {
                                    <a class="active" href="@Url.Action("Inbox", "MessageCenter")">Message Center</a>
                                }
                                else
                                { 
                                    <a href="@Url.Action("Inbox", "MessageCenter")">Message Center</a>
                                }
                            </li>
                            <li><a style="background:none; text-align:right; display: block; float:right;" href="@Url.Action("LogOff", "Account")">
                                <img src="@Url.Content("~/areas/admin/content/zatify/images/log_off_btn.png")" alt="Log Off" title="" border="0" /></a></li>
                        </ul>
                        <div class="clearfix">
                        </div>
                    </div>
                    <!--end menu-->
                </div>
            </div>
        </div>
        <!--end header part-->
        <!--start apps container body-->
        <div class="apps_container_wrapper">
            <div class="apps_container_bd">
                <div class="apps_container_title">
                    <h4>@currentModel.ModuleTitle</h4>
                </div>
                <div class="apps_container">
                    <div id="error" style="color: Red; font-weight: bold;">
                        @(ViewData["Error"] != null ? ViewData["Error"] : "")
                    </div>
                    @RenderBody()
                </div>
            </div>
            <div class="clearfix">
            </div>
        </div>
        <!--end apps container body-->
        <div class="footer_part">
            Copyright © Zatify @DateTime.Now.Year, All righs reserved
        </div>
    </div>
</body>
</html>
